﻿#pragma once


// CImageCaptureDlg 对话框

class CImageCaptureDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CImageCaptureDlg)

public:
	CImageCaptureDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CImageCaptureDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CAPTURE };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	void ReadConfigIni();
	void SaveValueToConfig();
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	CComboBox m_comboImageSource;
	CComboBox m_comboTestMode;
	CComboBox m_comboCaptureMode;
	CComboBox m_comboChangeMode;

	CComboBox m_comboCenterLineType		;
	CComboBox m_comboFeildLineType		;
	CComboBox m_comboCenterLineColor	;
	CComboBox m_comboFeildLineColor		;
	BOOL m_bWriteiic;
	BOOL m_bMirrorX;
	BOOL m_bMirrorY;
	afx_msg void OnBnClickedButtonSave();
	int m_nCTSId;
	int m_nCenterWide;
	int m_nFeildWide;
	double m_dFeildRatio;
	BOOL m_nGpioFlag;
	CComboBox m_comboGpioNo;
	afx_msg void OnBnClickedButtonWriteiic();
	BOOL m_bChangeXY;
	afx_msg void OnBnClickedButtonReadiic();
	afx_msg void OnCbnSelchangeComboTestMode();
	CString FW_SlaveAdd;
	BOOL IICFlag;
	BOOL m_bMirrorXt;
	BOOL m_bMirrorYt;
	CString SNAddr;
	//CWnd*                     m_ptrIICUI;
	afx_msg void OnBnClickedButtonSave2();
	int IMAGE_W;
	int IMAGE_H;
	BOOL m_bGaoFlag;
	CString MesIP;
	int MesPort;
	CString wpCode;
	CString gdNo;
	afx_msg void OnBnClickedButtonCheckgd();
	BOOL isOpenMes;
};
